﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ManagerTopUp.aspx.cs" Inherits="Admin_TopUpManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="gdvTopUp" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id_SD" ForeColor="#333333" GridLines="None" Height="84px" OnRowCancelingEdit="gdvTopUp_RowCancelingEdit" OnRowEditing="gdvTopUp_RowEditing" OnRowUpdating="gdvTopUp_RowUpdating" Width="820px" OnRowDeleting="gdvTopUp_RowDeleting" ShowHeaderWhenEmpty="True">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="durationTime" HeaderText="Duration" />
                    <asp:BoundField DataField="denomination" HeaderText="Denomination" />
                    <asp:BoundField DataField="discount" HeaderText="Discount" />
                    <asp:BoundField DataField="total" HeaderText="Total" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Edit">
                        <EditItemTemplate>
                            <asp:ImageButton ID="ImageButton2" runat="server" CommandName="update" Height="22px" ImageUrl="~/Admin/Images/icon_Save.png" Width="24px" />
                            <asp:ImageButton ID="ibtnCancel" runat="server" CommandName="cancel" Height="22px" ImageUrl="~/Admin/Images/icon_Undo.png" Width="25px" />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ibtnEdit" runat="server" CommandName="edit" Height="22px" ImageUrl="~/Admin/Images/icon_Edit.png" Width="23px" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Status">
                        <ItemTemplate>
                            <asp:LinkButton ID="linkDeactive" runat="server" CommandName="delete" OnClientClick="javascript:return confirm(&quot;Are you sure to Deactive this Top Up?&quot;)" ToolTip="Click here to deactive this TopUp" Visible='<%# Convert.ToInt32(Eval("status"))==1?true:false %>'>Active</asp:LinkButton>
                            <asp:LinkButton ID="linkActive" runat="server" CommandName="delete" OnClientClick="javascript:return confirm(&quot;Are you sure to Active this Top Up?&quot;)" ToolTip="click here to active this Top Up" Visible='<%# Convert.ToInt32(Eval("status"))==0?true:false %>'>Deactive</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <asp:Label ID="lblStatus" runat="server" Text="Label" ForeColor="#CC0000"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>

    

</asp:Content>

